﻿#include "television.h"

#include <QDebug>

#include "remotecontrol.h"

Television::Television()
{

}

void Television::add(QString channel)
{
    m_channelList.append(channel);
}

WIterator *Television::iterator()
{
    return new RemoteControl(this);
}

void Television::play(int i)
{
    qDebug() << "current channel: " << i << "," << m_channelList[i];
}

int Television::getTotalChannelNum()
{
    return m_channelList.size();
}
